package cn.iocoder.yudao.module.member.controller.admin.invitationcode.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 邀请码 Response VO")
@Data
@ExcelIgnoreUnannotated
public class InvitationCodeRespVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "21605")
    @ExcelProperty("主键id")
    private Long id;

    @Schema(description = "检测卡号")
    @ExcelProperty("检测卡号")
    private String number;

    @Schema(description = "剩余检测次数")
    @ExcelProperty("剩余检测次数")
    private Integer remainingNumber;

    @Schema(description = "总检测次数")
    @ExcelProperty("总检测次数")
    private Integer numberDetections;

    @Schema(description = "有效天数")
    @ExcelProperty("有效天数")
    private String effectiveDays;

    @Schema(description = "状态 待使用 已使用", example = "2")
    @ExcelProperty(value = "状态 待使用 已使用", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}